<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/plantilla/template_cp.xhtml">
	<ui:define name="title">
		<h:outputText value="SAC - Baja de Usuario" />
	</ui:define>
	<ui:define name="principal">
		<h:form>
			<p:panel id="panel" header="Cambio de Contraseña">

				<p:messages id="msgs" />
				<table align="center">
				<tr><td><h:outputLabel /></td></tr>
					<tr>
						<td><h:panelGrid columns="3">
								<h:outputLabel for="pass1" value="Contraseña Actual : " />
								<p:password id="pass1" value="#{userBean.pass1}" required="true" label="pass1">
								<f:validateLength minimum="6" maximum="10" />
								</p:password>
								<p:message for="pass1" display="icon" />

								<h:outputLabel for="pass2" value="Nueva Contraseña : " />
								<p:password id="pass2" value="#{userBean.pass2}" required="true" label="pass2">
								<f:validateLength minimum="6" maximum="10" />
								</p:password>
								<p:message for="pass2" display="icon" />
								
								<h:outputLabel for="pass3" value="Nueva Contraseña : " />
								<p:password id="pass3" value="#{userBean.pass3}" required="true" label="pass3">
								<f:validateLength minimum="6" maximum="10" />
								</p:password>
								<p:message for="pass3" display="icon" />

							</h:panelGrid>
						</td>
					</tr>
				</table>
				<table align="center">
				<tr><td><h:outputText>&nbsp;</h:outputText></td></tr>
				<tr><td><p:commandButton id="btn" value="Cambiar Contraseña" update="panel"
					action="#{userBean.cambioPass}" /></td></tr>
				</table>
			</p:panel>

		</h:form>
	</ui:define>

</ui:composition>
</html>